<?php
$temp = 0;
foreach ($lesson->result() as $res):

	$q = $this->db->query("select username from member where id_member='$res->id_member' limit 1");
				foreach ($q->result() as $re):
						$res->id_member = $re->username;
				endforeach;
?>
  <tr>
    <td align="left" class="font-size-16 capitalize">
    <a href="<?php echo base_url()?>dash/quiz/<?php echo $res->id_lesson?>">
    <div>
    <?php echo $res->name?>
    <div class="font-size-10 font-color-gray untransform italic">posted by <?php echo $res->id_member ?> at <?php echo $res->posted?></div>
    </div>
    </a>
    </td>
    <td class="font-size-16 bold">x</td>
  </tr>
  <tr>
   <td colspan="2"><hr size="1" width="98%" color="#cccccc" /></td>
  </tr>
<?php endforeach;?>